//
//  Person.h
//  OC06_作业
//
//  Created by dllo on 15/12/8.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject

@property (nonatomic, retain)NSString *name;
@property (nonatomic, assign)NSInteger age;
@property (nonatomic, retain)NSString *sex;

- (instancetype)initWithName:(NSString *)name
                         age:(NSInteger)age
                         sex:(NSString *)sex;


- (Person *)compareWithAge:(Person *)per;







- (NSComparisonResult)compareWithNameUp:(Person *)anotherPerson;

- (NSComparisonResult)compareWithAgeUp:(Person *)anotherPerson;


@end
